package com.weishu.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weishu.auth.form.SysRegion;
import com.weishu.auth.mapper.SysRegionMapper;
import com.weishu.auth.service.ISysRegionService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 地区表 服务实现类
 * </p>
 *
 * @author 史珺玚
 * @since 2021-11-11
 */
@Service
public class SysRegionServiceImpl extends ServiceImpl<SysRegionMapper, SysRegion> implements ISysRegionService {

    private final SysRegionMapper sysRegionMapper;

    public SysRegionServiceImpl(SysRegionMapper sysRegionMapper) {
        this.sysRegionMapper = sysRegionMapper;
    }

    @Override
    public List<SysRegion> getProvinces(String id) {
        return sysRegionMapper.getProvinces(id);
    }
}
